﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YH.Bluetooth
{
    public class InfoClass
    {
        /// <summary>
        /// 服务端端口
        /// </summary>
        public static int servicePort
        {
            get;
            set;
        }
    }
    /// <summary>
    /// WebSocket数据命令枚举
    /// </summary>
    public enum CommondCode
    {
        /// <summary>
        /// 搜索BLE设备命令(客户端发送给服务端)
        /// </summary>
        find_device = 1,
        /// <summary>
        /// 搜索BLE设备回复命令(服务端发送给客户端)
        /// </summary>
        find_device_reply = 2,
        /// <summary>
        /// 连接BLE设备(客户端发送给服务端)
        /// </summary>
        connect_device = 3,
        /// <summary>
        /// 连接BLE设备回复命令(服务端发送给客户端)
        /// </summary>
        connect_device_reply = 4,
        /// <summary>
        /// 发送数据命令(客户端发送给服务端)
        /// </summary>
        send_data = 5,
        /// <summary>
        /// 接收数据命令(服务端发送给客户端)
        /// </summary>
        receive_data = 6
    }
}
